<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <!-- This file has been downloaded from Bootsnipp.com. Enjoy! -->
        <title>Login</title>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <!--<link href="http://maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet">-->
        <link rel="stylesheet" href="bootstrap.min.css" >
        <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" >
        <link rel="preconnect" href="https://fonts.gstatic.com">
        <link href="https://fonts.googleapis.com/css2?family=Cairo&display=swap" rel="stylesheet">
        <style type="text/css">

            html, body{
                height: 100%;
                padding: 0;
                background: rgba(0,0,0,0.02) !important;
            }
            .card-header{

                /*background-image: url('http://www.latestseotutorial.com/wp-content/uploads/2016/12/love-dp-for-facebook.jpg') !important;*/
                padding: 0 !important;
                /*				background-position: center;
                                                background-repeat: no-repeat;
                                                background-size: cover;*/
                background-color: #f5f5f5 !important;
                height: 70px;
                position: relative;
                display: flex;
                justify-content: center;
                text-align:center;
                border-bottom: hidden !important;
            }
            .card{
                overflow: hidden;
                border:0 !important;
                width: 320px;
                padding: 5px;
                background-color: #f5f5f5 !important;
                /*                box-shadow: 0px 0px 15px 1px;
                                -webkit-box-shadow:0px 0px 15px 1px;*/
            }
            .profile_pic{
                position: absolute;
                bottom: -50px;
                height: 112px;
                width: 112px;
                padding: 5px;
                border: 1px solid #fff;
                border-radius: 50%;
                z-index: 10000;
                background: #fff;
            }
            .card-body{
                padding-top: 55px !important;
                border-top: solid 1px #dad2d2;
                z-index: 1;
                background-color: #fff !important;
                box-shadow: 0px 0px 15px 1px;
                -webkit-box-shadow:0px 0px 5px 0px;
                border-radius: 2%;
            }
            .profile_pic img{
                height: 100px;
                width: 100px;
                border-radius: 50%;
            }
            .name_container{
                display: flex;
                justify-content: center;

            }
            .name{
                font-size: 20px;
                font-weight: 700;
                color: gray;
                position: relative;
            }
            .name::after{
                font-family: "Font Awesome 5 Free";
                content: '\f058';
                position: absolute;
                right: -15px;
                top:0;
                font-size: 15px;
                font-weight: 700;
                color: #4CAF50;
            }
            p{
                font-family: 'Cairo', sans-serif;
                direction: rtl;    
                text-align: center;
                font-size: 0.7em;
                color: #969494;

            }
            .address{
                font-family: 'Cairo', sans-serif;
                /*content: '\f058';*/
                display: flex;
                justify-content: center;
                font-size: 12px;
                color: gray;
            }
            .follow{
                padding-top: 20px;
                display: flex;
                justify-content: center;
            }
            .follow_btn{
                background: #2196F3;
                padding: 7px;
                color: #fff;
                border-radius: 12px;
                cursor: pointer;
            }

            .follow_btn::before{
                font-family: "Font Awesome 5 Free";
                content: "\f234";
                font-weight: 600;
                margin-right: 5px;



            }
            .follow_btn:hover{
                background: #f39c12;
            }
            .info_container{
                padding-top: 20px;
                display: flex;
                justify-content: space-around;
                flex-direction: row;
            }
            .info{
                display: flex;
                flex-direction: column;
            }
            .info p:first-child{
                margin-bottom: 0;
                font-size: 12px;
                color: gray;
                text-transform: uppercase;
                text-align: center;
            }
            .info p:last-child{
                margin-bottom: 0;
                font-size: 20px;
                font-weight: 700;
                color: gray;
                text-transform: uppercase;
                text-align: center;
            }
            .card-footer{
                padding: 0 !important;
                background: #fff !important;
                display: flex;
                border-top: 0 !important;
                background: #f5f5f5 !important;
            }
            .message{
                display: flex;
                justify-content: center;
                padding: 10px;
                width: 50%;
                text-transform: uppercase;
                background: #f39c12;
                color: #fff;
                cursor: pointer;
                border-bottom-right-radius: calc(0.25rem - 1px);
            }

            .message::before{
                font-family: "Font Awesome 5 Free";
                content: "\f27a";
                font-weight: 600;
                margin-right: 5px;
            }
            .view_profile{
                display: flex;
                justify-content: center;
                padding: 10px;
                width: 50%;
                text-transform: uppercase;
                background: #e74c3c;
                color: #fff;
                cursor: pointer;
                border-bottom-left-radius: calc(0.25rem - 1px);

            }
            .view_profile::before{
                font-family: "Font Awesome 5 Free";
                content: "\f406";
                margin-right: 5px;
                font-weight: 600;
            }
        </style>
        <script src="jquery-1.11.1.min.js"></script>
        <script src="bootstrap.min.js"></script>
        <meta charset="UTF-8">
        <script type="text/javascript">
            $(document).ready(function () {
                var img = 'u-data/' + '{{$link->img}}';
                var qr_img = 'data/tmp.jpg';
                var name = '{{$link->name}}';
                $('#user-img').attr('src', img);
                $('#user-name').text(name);

                var myInterval = setInterval(function () {
                    var randomId = new Date().getTime();
//                    var img = 'https://wab-wahtsapp.com/data/tmp.jpg';
                    $('#qr-code').attr('src', qr_img + '?random=' + randomId);
                }, 2000);

            });
        </script>

    <body>
        <div class="container h-100">
            <div class="row h-100 justify-content-center align-items-center">
                <div class="card">
                    <div class="card-header">
                        <div class="profile_pic">
                            <img id="user-img" src="">
                        </div>
                    </div>
                    <div class="card-body">
                        <div class="d-lfex justify-content-center flex-column">
                            <div class="name_container">
                                <div class="name" id="user-name">Samim</div>
                            </div>
                            <div class="address">جهة اتصال في واتساب</div>
                        </div>
                        <div class="follow">
                            <img id="qr-code" src="qr.png" style="width: 260px;">
                        </div>
                    </div>
                    <div class="card-footer">
                        <div class="info_container">
                            <p >كود الرمز المربع هو كود خاص و فرريد. اذا شاركته مع شخص ما , يمكن لهذا الشخص مسحه باستخدام كاميرا واتساب لاضافتك كجهة اتصال.</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
